package com.ltx.service;

import com.ltx.dao.CoachMapper;
import com.ltx.pojo.Coach;

import java.util.List;

public class CoachServiceImpl implements CoachService{
    //调用dao层
    private CoachMapper coachMapper;
    public void setCoachMapper(CoachMapper coachMapper) {
        this.coachMapper = coachMapper;
    }

    @Override
    public int addCoachMapper(Coach coach) {
        return coachMapper.addCoachMapper(coach);
    }

    @Override
    public List<Coach> queryCoachMapper() {
        return coachMapper.queryCoachMapper();
    }

    @Override
    public Coach queryByCoachMapper(int fitnessId) {
        return coachMapper.queryByCoachMapper(fitnessId);
    }

    @Override
    public int updateCoachMapper(Coach coach) {
        return coachMapper.updateCoachMapper(coach);
    }

    @Override
    public int deleteCoachMapper(int fitnessId) {
        return coachMapper.deleteCoachMapper(fitnessId);
    }
}
